package com.ktwlrj.securitycenter.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ktwlrj.core.base.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 预警拦截实体类
 *
 * @author makejava
 * @since 2020-02-24 18:08:13
 */
@Getter
@Setter
@ToString
@TableName("fcjy_safe_intercept")
public class SafeInterceptEntity extends SuperEntity {
    private static final long serialVersionUID = 578051302743624433L;

    @TableId
    private String interceptId;

    @ApiModelProperty(name = "interceptCode", value = "拦截编号")
    private String interceptCode;

    @ApiModelProperty(name = "ruleName", value = "规则名称")
    private String ruleName;

    @ApiModelProperty(name = "target", value = "对象(1.人员，2.房屋,3.交易)")
    private Integer target;

    @ApiModelProperty(name = "targetCount", value = "限制对象数")
    private Integer targetCount;

    @ApiModelProperty(name = "ruleCount", value = "限制业务数")
    private Integer ruleCount;

    @ApiModelProperty(name = "approveStatus", value = "审批状态(0.草稿,10.已提交,20.已通过,30.未通过,40.历史)")
    private Integer approveStatus;

    @ApiModelProperty(name = "approveTime", value = "审批时间")
    private Date approveTime;

    @ApiModelProperty(name = "version", value = "版本号")
    private Integer version;

    @ApiModelProperty(name = "orgId", value = "机构id")
    private String orgId;

    @ApiModelProperty(name = "orgName", value = "机构名称")
    private String orgName;

    @ApiModelProperty(name = "regionCode", value = "区域编号")
    private String regionCode;

    @ApiModelProperty(name = "regionName", value = "区域名称")
    private String regionName;

    @ApiModelProperty(name = "lockStatus", value = "锁定状态（10=正常,20=删除中,30=变更中）")
    private Integer lockStatus = 10;

    @ApiModelProperty(name = "historyType", value = "历史类型（10=正常,20=变更,30=删除）")
    private Integer historyType = 10;

    @ApiModelProperty(value = "预警拦截类型（1=新建,2=变更）")
    private Integer interceptType;
}